import request from '@/config/http.js'

export function matTlist(params) {
  return request({
    url: 'material/mattype',
    method: 'get',
    params
  })
}

export function matTadd(data) {
  return request({
    url: 'material/mattype',
    method: 'post',
    data
  })
}

export function matTedit(data) {
  return request({
    url: 'material/mattype',
    method: 'put',
    data
  })
}

export function matTdel(ids) {
  return request({
    url: 'material/mattype',
    method: 'delete',
    data: ids
  })
}

export default { matTlist, matTadd, matTedit, matTdel }
